<?php

class Application_Form_Projeto extends Zend_Form
{

    public function init()
    {
        $this->setName('Cadastro_empresa');
		
		
		 $id  = new  Zend_Form_Element_Hidden( 'id');
		
		$nome = new Zend_Form_Element_Text('nome');
		$nome->setLabel('Nome')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
    
	
	
		$cpf_consultor = new Zend_Form_Element_Text('cpf_consultor');
		$cpf_consultor->setLabel('Cpf consultor')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
				
	
	
		$cnpj_empresa = new Zend_Form_Element_Text('cnpj_empresa');
		$cnpj_empresa->setLabel('Cnpj empresa')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
				
				
				
		$duracao = new Zend_Form_Element_Text('duracao');
		$duracao->setLabel('Duracao')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));

				
				
		$submitButton = new Zend_Form_Element_Submit('Submeter');
		
		$submitButton->setLabel('Submeter');
		$submitButton->setAttrib('id','Submeter')
					->setIgnore(true)
					->setDecorators(array(
						'ViewHelper',

						'Description',
						array('HtmlTag',array('tag'=> 'p'))
					));
					
		$this->addElements(array($nome,$cpf_consultor,$cnpj_empresa,$duracao,$submitButton));
		
		$this->setAction('/cadastro/projeto')->setMethod('post');		
    }


}

